#ifndef _MENUCOMP_H
#define _MENUCOMP_H


#include "IMenuComponent.h"

class MenuComp : public IMenuComponent {
  public:
    int checkType(int id) override;

    void show() override;

    std::vector<std::shared_ptr<IMenuComponent>> getchilden() override;

    void add(IMenuComponent * items) override;

    void setText(const std::string & text) override;

    void setDesc(const std::string & desc) override;

    void print(long id) override;


  private:
    std::vector<std::shared_ptr<IMenuComponent>> childen;

};
#endif
